package lianxi01;

import java.util.Scanner;

public class LianXi2 {
    public static void main(String[] args) {
        int scorse = 0; // 学生成绩
        int[] num = new int[5];
        double pingjum = 0; //平均分
        int sum = 0;    //总分
        Scanner input = new Scanner(System.in);
        for (int i =0;i<5;i++){
            System.out.println("请输入第"+i+"门考试成绩");
            num[i] = input.nextInt();
        }
        for (int i =0;i< num.length;i++){
            sum+=num[i];
        }
        System.out.println("平均分："+sum/num.length);
    }
}
